package com.webproject.core.model;

import java.util.Date;

/**
 * 用户类
 * table: user
 */
public class User {
    /**
     * 用户id
     */
    private String id;
    /**
     * 用户账号
     */
    private String username;
    /**
     * 用户密码 不存储明文 存储明文的md5值
     */
    private String password;
    /**
     * 用户昵称
     */
    private String nickname;
    /**
     * 用户性别 0 未知 1 男性 2女性 数据库默认0
     */
    private Integer gender;
    /**
     * 用户数据创建时间 已有默认值
     */
    private Date createTime;
    /**
     * 用户数据更新时间
     */
    private Date updateTime;


    public User() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
